cmake_minimum_required(VERSION 2.6)
project(direct_method)

find_package(OpenCV REQUIRED)
find_package(Sophus REQUIRED)
find_package(Pangolin REQUIRED)

include_directories(${OpenCV_INCLUDE_DIRS}
                    ${G2O_INCLUDE_DIRS}
                    ${Sophus_INCLUDE_DIRS}
                    "/usr/include/eigen3/"
                    ${Pangolin_INCLUDE_DIRS}
                    )
                    
add_executable(direct_method main.cpp)

target_link_libraries(direct_method ${OpenCV_LIBS} ${Pangolin_LIBRARIES})

install(TARGETS direct_method RUNTIME DESTINATION bin)
